import React, { useEffect } from 'react'
import { Button, ErrorBlock, Space } from 'antd-mobile'
import { useHistory } from 'react-router'
export default function Index() {
  useEffect(() => {
    document.body.style.background = '#ffffff'
  }, [])
  const history = useHistory()
  return (
    <>
      <ErrorBlock fullPage />
      <div style={{ textAlign: 'center' }}>
        <Space>
          <Button color="success" onClick={() => history.push('/')}>
            跳转首页
          </Button>
          <Button color="warning" onClick={() => history.goBack()}>
            返回上一页
          </Button>
        </Space>
      </div>
    </>
  )
}
